package com.leyou.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.auth.dto.UserDetail;
import com.leyou.user.dto.UserDTO;
import com.leyou.user.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserService extends IService<User> {
    UserDTO queryByUnameAndPwd(@Param("username") String username, @Param("password") String password);

    void logonUser(User user,@Param("code") String code);

    void sendCode(String phone);

    Boolean isExist(@Param("data") String data, @Param("type") Integer type);


    UserDetail checkLogin(String token);
}
